/**
 * Create by CaoWenjian
 *
 * @copyRight: 2018
 **/
package com.bjboot.caocao.system.service;

import com.bjboot.caocao.system.domain.MenuDO;
import com.bjboot.caocao.system.domain.Tree;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 *@Description 菜单业务处理逻辑层
 *@Author 操文健
 *@Date 2018-09-05 上午10:58
 *@Version 1.0
 **/
@Service
public interface MenuService {
    Tree<MenuDO> getSysMenuTree(Long id);

    List<Tree<MenuDO>> listMenuTree(Long id);

    Tree<MenuDO> getTree();

    Tree<MenuDO> getTree(Long id);

    List<MenuDO> list(Map<String, Object> params);

    int remove(Long id);

    int save(MenuDO menu);

    int update(MenuDO menu);

    MenuDO get(Long id);

    Set<String> listPerms(Long userId);
}
